package cn.cyl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
@SpringBootApplication//声明当前类为springBoot项目的启动类
@MapperScan("cn.cyl.*.mapper")//扫描mapper接口，生成mapper的代理对象-再service中注入使用
@ServletComponentScan(value = "cn.cyl.basic.listener")//扫描监听器所在的包
public class App {
    public static void main(String[] args) {
        //使用启动类去运行spring的项目
        SpringApplication.run(App.class);
    }
}
